package jw.repository.agent;


import jw.model.agent.WxAgentAddress;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface WxAgentAddressRepository extends JpaRepository<WxAgentAddress,Integer>, JpaSpecificationExecutor<WxAgentAddress> {

    WxAgentAddress findByAgentIdAndIsDefault(Integer agentId,Integer isUsed);

    List<WxAgentAddress>findByAgentId(Integer agentId);
}
